package com.xiebishe.mylibrary.common.pageStatus;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;

import com.xiebishe.mylibrary.R;


public class LoadingView extends LinearLayout {

    private LinearLayout mContainer;


    public LoadingView(Context context) {
        super(context);
        initView();
    }

    public LoadingView(Context context, AttributeSet attrs) {
        super(context, attrs);
        initView();
    }

    public void initView() {
        mContainer = (LinearLayout) LayoutInflater.from(getContext()).inflate(R.layout.page_loading, null);
        addView(mContainer, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
    }
}
